
<%@include file="/WEB-INF/jsp/commons/taglibs.jsp"%>
<s:layout-render name="/WEB-INF/jsp/commons/layout_main.jsp"
	title="Lista Contactos">
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  "http://www.w3.org/TR/html4/strict.dtd">


	<s:layout-component name="body">
	<s:messages/>
		<d:table name="${actionBean.contacts}" id="contact" requestURI=""
			defaultsort="1">
			<d:column title="id" property="id" sortable="true" />
			<d:column title="Last name" property="lastName" sortable="true" />
			<d:column title="First name" property="firstName" sortable="true" />
			<d:column title="Email" property="email" sortable="true" />
			<d:column title="Action">
				<s:link beanclass="valverde.nacho.stripes.ContactListActionBean"
					event="view">
					<s:param name="contactId" value="${contact.id}" />View</s:link> |
                <s:link beanclass="valverde.nacho.stripes.ContactListActionBean"
					event="delete"
					onclick="return confirm('Delete ${contact}?');" >
					<s:param name="contactId" value="${contact.id}" />Delete</s:link>
			</d:column>
		</d:table>
		<br/>
		<s:link beanclass="valverde.nacho.stripes.ContactFormActionBean"
		  event="newcontact">Add contact</s:link>
	</s:layout-component>
</s:layout-render>